package com.sdp.irrigation.protocol;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CommPackage {

	@JSONField(ordinal = 1)
	private String pakSn;
	
	@JSONField(ordinal = 2)
	private String type;//请求类型
	
	@JSONField(ordinal = 30)
	private JSONObject body;//请求体
	
	@JSONField(ordinal = 10)
	private Integer code;//应答编码或下发指令编码
	
	@JSONField(ordinal = 20)
	private JSONObject rtn;//应答体
	
	@JSONField(ordinal = 3)
	private String devSn;//设备编号
	
	@JSONField(ordinal = 5)
	private String upgrade;
	
	@JSONField(ordinal = 6)
	private String url;
	
	@JSONField(ordinal = 7)
	private String username;
	
	@JSONField(ordinal = 8)
	private String password;
	
	@JSONField(ordinal = 9)
	private Integer packsize;
	
	@JSONField(ordinal = 4)
	private String cardNum;//卡号
	
	@JSONField(ordinal = 40)
	private String sofVer;//版本号
	
	@JSONField(ordinal = 50)
	private String set;//参数设置成功标志
}
